<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\api\service\CollectService;

class Collect extends Api
{
    protected $noNeedLogin = [];
    protected $noNeedRight = ['*'];


    /**
     * 管家收藏列表
     *
     */
    public function steward_lists()
    {
        $data = $this->request->post();
        $res = CollectService::getStewardLists($data);
        return json($res);
    }

    /**
     * 添加管家收藏
     *
     */
    public function steward_add()
    {
        $data = $this->request->post();
        $res = CollectService::stewardAdd($data);
        return json($res);
    }

    /**
     * 删除管家收藏
     *
     */
    public function steward_del()
    {
        $data = $this->request->post();
        $res = CollectService::stewardDel($data);
        return json($res);
    }


}